package com.sykj.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author derking
 * @since 2022-09-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_menu")
@ApiModel(value="SysMenu对象", description="")
public class SysMenu extends Model<SysMenu> {


    @ApiModelProperty(value = "菜单ID")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "级别")
    @TableField("level")
    private String level;

    @ApiModelProperty(value = "顺序")
    @TableField("indexs")
    private String indexs;

    @ApiModelProperty(value = "页面路由url")
    @TableField("route_url")
    private String routeUrl;

    @ApiModelProperty(value = "类型 0菜单 1按钮")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "上级ID")
    @TableField("parent_id")
    private String parentId;

    @ApiModelProperty(value = "层级关系")
    @TableField("relation")
    private String relation;

    @TableField("is_del")
    private String isDel;

    @TableField("create_time")
    private LocalDateTime createTime;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
